
package com.lykj.common.config;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.profile.DefaultProfile;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 日志工具自动配置
 *
 * @author cxl
 */
@Configuration
@AllArgsConstructor
public class SMSConfiguration {

	@Bean(name = "smsClient")
	public IAcsClient client(){
		DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", "LTAI4GKCA8gEnWecu7q5ip1W", "muoAO1QY2J4OkzwdaPNa1oO4374N3P");
		return new DefaultAcsClient(profile);
	}

}
